package ooday02;
/** 继承类测试 */
public class ExtendsTest {
    public static void main(String[] args) {
    Student zs  = new Student("张三",20,"廊坊","jsd2302","2302");
    zs.eat();
    zs.sleep();
    zs.sayHi();
    zs.study();

    Teacher te = new Teacher("周玲",27,"郑州",6000);
    te.eat();
    te.sleep();
    te.sayHi();
    te.teach();

    Doctor doc = new Doctor("李四", 43,"郑州文化路","专家");
    doc.eat();
    doc.sleep();
    doc.sayHi();
    doc.cut();


    }
}
